Multi-value Tokens

A multi-value token is a token that contains two or more values.

Example: Your workflow has a Retrieve Field Values activity that retrieves all the values of the multi-value field "E-mail." The field contains three e-mail addresses. The token generated by the activity is a multi-value token, containing all three e-mail addresses.

Appearance

The way the values in a multi-value token appear depends on where the token is used and its syntax. For instance, if you place a multi-value token in the body of a sticky note or an e-mail, only the first value will be inserted into the sticky note. Using the token editor or the syntax below, you can have the token be replaced by one or all of its values separated by commas, line breaks, spaces, or a variety of other delimiters. If you use the token to populate a multi-value field, each of the token's values will populate a single value of the multi-value field.

Indexing

Each value in a multi-value token is given an index, which is a number that specifies where each value occurs in the list of values. Values are generally given an index number according to the order in which they are added--the higher the number, the newer the value. You can extract a single value from a multi-value token, based on its index, using the token editor or using the token syntax described below.

Example: If a value has an index of "1", this means that it is the oldest value.

Note: The Scripting Activities, custom activities, or the Assign Field Values activity may change the order of values in a multi-value token so that the indices do not reflect the order in which values were added.

Multi-value token syntax

Most multi-value tokens have the syntax as single-value tokens: %(ActivityName_TokenName) or %(TokenName), but some have _All appended to their syntax: %(ActivityName_TokenName_All) or %(TokenName_All)

You can modify the way a multi-value token is replaced by its values using the token editor or the syntax below.